function DispTextOnGUI(type_img,pX,pY,handles,xROI,yROI,cons)

set(handles.text_x_amplitude,'string',['x amp.: ' num2str(pX(1),'%.2e')]);
set(handles.text_y_amplitude,'string',['y amp.: ' num2str(pY(1),'%.2e')]);
set(handles.text_x_sizepx,'string',['widthx (px): ' num2str(handles.width.xfit1d,'%.1f')]);
set(handles.text_y_sizepx,'string',['widthy (px): ' num2str(handles.width.yfit1d,'%.1f')]);
set(handles.text_filename,'string',handles.dpath);
set(handles.text_peak1d_position,'string',['peak 1D (v,h) = (' num2str(handles.pos.xfit1d) ',' num2str(handles.pos.yfit1d) ')']);
set(handles.text_roi,'string',['ROI(x,y) = (' num2str(xROI(1)) ','  num2str(xROI(end)) '   '  num2str(yROI(1)) ',' num2str(yROI(end)) ')']);
set(handles.text_numAtoms,'string',['# Atoms (xfit): ' num2str(handles.numatoms.xfit1d,'%.2e')]);
if type_img == 3
    set(handles.text_peak_pixel_count_signal,'string',['pk pixel cnt (image) = ' num2str(handles.counts.pkimage)]);
    set(handles.text_peak_pixel_count_bkgnd,'string',['pk pixel cnt (bkgnd) = ' num2str(handles.counts.pkbck)]);
end

%%%%COMMENT EVERYTHING BELOW TO WORK WITH ORIGINAL atoms_2_gui.fig
set(handles.text_peak2d_position,'string',['peak 2D (v,h) = (' num2str(handles.pos.xfit2d) ',' num2str(handles.pos.yfit2d) ')']);
set(handles.text_x_sigma2d,'string',['sigx (um): ' num2str(handles.sigma.xfit2d*cons.um,'%.1f')]);
set(handles.text_y_sigma2d,'string',['sigy (um): ' num2str(handles.sigma.yfit2d*cons.um,'%.1f')]);
set(handles.text_numAtoms_fit2d,'string',['# Atoms (fit): ' num2str(handles.numatoms.fit2d,'%.2e')]);
set(handles.text_numAtoms_image,'string',['# Atoms (image): ' num2str(handles.numatoms.ODint,'%.2e')]);
set(handles.text_peakOD_fit2d,'string',['peak OD (fit): ' num2str(handles.OD.peakfit2d,'%.1f')]);
set(handles.text_peakOD_image,'string',['peak OD (image): ' num2str(handles.OD.peakimage,'%3.3g')]);
set(handles.text_meanOD_image,'string',['mean OD (image): ' num2str(handles.OD.meanimage,'%.1f')]);
set(handles.text_peakOD_pos1d,'string',['peak ODraw at (v,h): ' num2str(handles.OD.pkatpos1d,'%.1f')]);
set(handles.text_peakOD_pos2d,'string',['peak ODraw at (v,h): ' num2str(handles.OD.pkatpos2d,'%.1f')]);
set(handles.text_x_sizepx2d,'string',['widthx (px): ' num2str(handles.width.xfit2d,'%.1f')]);
set(handles.text_y_sizepx2d,'string',['widthy (px): ' num2str(handles.width.yfit2d,'%.1f')]);
set(handles.text_x_sigma1d,'string',['sigx (um): ' num2str(handles.sigma.xfit1d*cons.um,'%.1f')]);
set(handles.text_y_sigma1d,'string',['sigy (um): ' num2str(handles.sigma.yfit1d*cons.um,'%.1f')]);
set(handles.text_peakdensity_2d,'string',['n0 from fit (cm-3): ' num2str(handles.density.peakfit2d/(100^3),'%.2e')]);
set(handles.text_peakdensity_image,'string',['n0 from image (cm-3): ' num2str(handles.density.peakimage/(100^3),'%3.3g')]);
set(handles.text_numAtoms_yfit1d,'string',['# Atoms (yfit): ' num2str(handles.numatoms.yfit1d,'%.2e')]);
set(handles.text_peakdensity_yfit1d,'string',['n0 from yfit (cm-3): ' num2str(handles.density.peaky1d/(100^3),'%.2e')]);
set(handles.text_peakdensity_xfit1d,'string',['n0 from xfit (cm-3): ' num2str(handles.density.peakx1d/(100^3),'%.2e')]);
if type_img == 3
    set(handles.text_peak_pixel_count_elecnoise,'string',['pk pixel cnt (elec) = ' num2str(handles.counts.pkelec)]);
end
end


